
package org.darcy.controller.test;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Father implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;

	private String name;

	private Date birthday;

	private Child firstSon;

	private List<Child> childList;

	public static Father createData() {
		Father data = new Father();
		data.setBirthday(new Date());
		data.setId(100);
		data.setName("我是爸爸");
		return data;
	}

	public static Father createData(int i) {
		Father data = new Father();
		data.setBirthday(new Date());
		data.setId(i);
		data.setName("我是爸爸" + i);
		return data;
	}

	public static List<Father> createList() {
		List<Father> list = new ArrayList<Father>();
		for (int i = 10; i < 20; i++) {
			list.add(createData(i));
		}
		return list;
	}

}
